package com.jia.lidao.network.http.request.impl;

import com.jia.lidao.Constans;
import com.jia.lidao.enity.LoginRespDTO;
import com.jia.lidao.network.http.request.AbstractRequest;

import org.apache.http.Header;

import java.lang.reflect.Type;
import java.util.List;

/**
 * Created by jia on 17/12/28.
 */

public class RefreshTokenRequest extends AbstractRequest {

    private String refreshtoken;


    public RefreshTokenRequest(String refreshtoken){
        this.refreshtoken=refreshtoken;
    }


    @Override
    public String getUrl() {
        return Constans.BASEURL+"/authorization/refresh";
    }

    @Override
    public void initRequestParams() {
        addParam("refresh_token",refreshtoken);
    }

    @Override
    public List<Header> getHeaders() {
        return null;
    }

    @Override
    public Type getResultType() {
        return LoginRespDTO.class;
    }
}
